feat: consolidate CLI and add structured logging#2
Merged
Conversation
Major architectural improvements: - Consolidated internal/cli/ (8 files) into single internal/cli.go - Moved business logic to domain packages (daemon.LaunchWithClaude, daemon.ShowLastLines, daemon.FollowLogs) - Added structured logging with slog and log rotation via lumberjack - Made 'athena' launch daemon + Claude Code by default - Made 'athena logs' tail by default (--follow=true) Breaking changes: - Removed JSON config format support (YAML-only) - Removed wrapper scripts from release workflow - Changed default behavior: 'athena' now runs 'athena code' functionality Configuration improvements: - Added logging flags (--log-format, --log-file) - Updated all docs to reference YAML-only config - Simplified config precedence: CLI → YAML → env → defaults Release workflow improvements: - Removed 200+ lines of wrapper script generation - Simplified installation with integrated daemon management - Updated release documentation and examples Architecture benefits: - Single source of truth for CLI commands - Clear separation: CLI orchestrates, domains implement - Better testability with domain functions - Follows single-file organization standard All tests passing (109 tests across 6 packages) Security scan clean with govulncheck 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Major architectural improvements:
Breaking changes:
Configuration improvements:
Release workflow improvements:
Architecture benefits:
All tests passing (109 tests across 6 packages)
Security scan clean with govulncheck
🤖 Generated with Claude Code
Description
Brief description of the changes in this PR.
Type of Change
Testing
make checklocally and all checks passChecklist
make fmtandmake lint)Configuration Changes
If this PR changes configuration options:
openrouter.example.yml,openrouter.example.json,.env.example)Additional Notes
Any additional information, context, or screenshots that would be helpful for reviewers.